const path = require("path");
const fs = require("fs-extra");
var MultiStream = require('multistream')
const lib = require("../lib");
// new MultiStream([
//   fs.createReadStream(path.join(__dirname, "../tmp/1KB.jpg")),
//   fs.createReadStream(path.join(__dirname, "../tmp/EEE.zip")),
// ]).pipe(fs.createWriteStream(path.join(__dirname, "../tmp", "test-zip.jpg")));

// https://coding-net-production-file-ci.codehub.cn/bf3e25b0-a743-11ea-ac7a-7374110578f9.jpg?attname=EEE-JPG.zip&sign=Q2sTykAWED7Ufmiz7GbNjdbcivZhPTEyNTcyNDI1OTkmaz1BS0lEYXk4M2xGbWFTNlk0TFRkek1WTzFTZFpPeUpTTk9ZcHImZT0xNTkxNTg4MDAzJnQ9MTU5MTM3MjAwMyZyPTUxNDIyNTY5JmY9L2JmM2UyNWIwLWE3NDMtMTFlYS1hYzdhLTczNzQxMTA1NzhmOS5qcGcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==

let session  = "K2kwd2ppNy9sVHpFdmVmRzJYL1lJdXBvVndoNnoxYklIN09IQmlEVkNzZnduSkZTWlBhYWUzS0tCeWNUek5BRnhVa251bFZteVhZcnZSa1VaQUs1ZVVRRWVxT3dtY3dlMHVUUFcrNjVvaUM1b3dyeDdXMjVPQktRdXl5OVZYSFBOekZPdml1NDJQcjNoeEZLbFgzbXBxbkJ3N0c3eTRBZ2pqdEtCaFJ0V3B2blhyQlBaSmVGV0NhV21ZWWxpeGNjQXVXYVFOWWpiaUdKbEt3UUpUS0t5SWNYS2VIOHdOTlNqS2oycUxOS202ZGNaS0JmQnV6MzdYcGpRcTZ6RkJLNDlwMFFkZm52aEpmRHpRdU5OLzROZ0M3WFZobFJYOUFqWVYyaU8rMFZOeUVkeHJnNVJJSERkQlBpS1lpR0tKeU1MT1o0c3MwV2UrUUZ4aFN6TzV0NUU1R0lnbTZxVEYzcDFzZUxQdWw3TG0yN3pLUksyTXc5VHJpN0VvZmJubis2Q3pRaGlEb0ZZZ2VlU2hEV3REYTZLKzNVUHVKb3ozQk8rNkFob1NiRlgzb1NIRlZ1blkxdThYNjBHU05keWt5RC0tKzliUm9DNkFlUEk2ekFKWUx1eVRhQT09--83e381ddc956663826781aa279cd1ac983c8f5fb";

lib.GetGiteeBySession(session)
.then(async VV=>{
  debugger
  let gitee = VV.data.gitee;
  let o_get = await gitee.getWikiContent("yaby007/ERO_PIC_PARK",2292767)
  debugger
})

